package it.trio.monopoly.util;

import it.trio.monopoly.domain.Die;
import it.trio.monopoly.util.Terminal;

public class FakeTerminalThatStoresMessage implements Terminal {
	private String message = "";

	@Override
	public void output(Die d) {
		message += d.getFaceValue() + ",";
		System.out.println(message);
	}

	@Override
	public void output(Die d1, Die d2) {
		message += d1.getFaceValue() + "," + d2.getFaceValue() + ",";
//  for using alternative messages like this, remember to change the getCharPerFV() method
//		message += "(" + d1.getFaceValue() + "," + d2.getFaceValue() + "),";
		System.out.println(message);
	}

	public String getMessage() {
		return message;
	}

	public int getCharPerFV() {
		return "4,".length();
//         return "(4,3),".length() div 2;
	}

}
